<link type="text/css" rel="stylesheet" href="__STATIC__/home/datatime/test/jeDate-test.css">
<link type="text/css" rel="stylesheet" href="__STATIC__/home/datatime/skin/jedate.css">
<script type="text/javascript" src="__STATIC__/home/datatime/src/jedate.js"></script>
<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="{:url()}" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">申请时间</label>
                <div class="layui-input-inline" style="min-width:230px;">
                    <div class="jeinpbox"><input type="text" name="create_time" value="{:input('get.create_time')}" readonly placeholder="年月日~年月日"  id="test11A" lay-verify="required" autocomplete="off" class="layui-input"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">审核进度</label>
                <div class="layui-input-inline">
                    <select name="status" class="field-bank_id" type="select">
                        <option value="6" selected>全部</option>
                        <option value="1" {if condition="input('get.status') eq 1"}selected{/if}>审核中</option>
                        <option value="2" {if condition="input('get.status') eq 2"}selected{/if}>审核成功待打款</option>
                        <option value="3" {if condition="input('get.status') eq 3"}selected{/if}>打款成功</option>
                        <option value="4" {if condition="input('get.status') eq 4"}selected{/if}>已拒绝</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="{:input('get.keyword')}" lay-verify="required" placeholder="输入名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th width="30px">编号</th>
                <th>提现编号</th>
                <th>申请昵称</th>
                <th>支付宝账户</th>
                <th>真实姓名</th>
                <th>红豆币</th>
                <th>折合人民币</th>
                <th>申请时间</th>
                <th>审核状态</th>
                <th>审核时间</th>
                <th>审核内容</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {php}
            $level = config('hs_system.member_level');
            {/php}
            {volist name="cashlist" id="vo"}
            <tr>

                <td class="font12">{$vo['id']}</td>
                <td class="font12">{$vo['ordersn']}</td>
                <td class="font12">{$vo['nickname']}</td>
                <td class="font12">{$vo['alipaynum']}</td>
                <td class="font12">{$vo['realname']}</td>
                <td class="font12">{$vo['rd_coin']}个红豆币</td>
                <td class="font12">{$vo['money']}</td>
                <td class="font12">{$vo['create_time']}</td>
                <td class="font12">{if condition="$vo['status'] eq 1"}审核中{elseif/ condition="$vo['status'] eq 2"}审核通过待打款{elseif/ condition="$vo['status'] eq 3"}打款成功{else/}审核失败{/if}</td>
                <td class="font12">{$vo['check_time']}</td>
                <td class="font12">{$vo['content']}</td>
                <td style="width: 150px;">
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="{:url('check?id='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm" title="审核"><i class="layui-icon">&#xe642;</i></a>
                        </div>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        {$cashlist->render()}
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <thead>
            <tr>
                <td>总数据</td>
                <td>已打款金额：<i style="color: red">{$totalmoney}</i>元</td>
                <td>审核待打款金额：<i style="color: red">{$ordermoney}</i>元</td>
                <td>待审核金额：<i style="color: red">{$wechatmoney}</i>元</td>
                <td>审核拒绝总金额：<i style="color: red">{$alipaymoney}</i>元</td>
            </tr>
            </thead>
        </table>
    </div>
</form>
{include file="admin@block/layui" /}
<script src="__STATIC__/js/jquery.2.1.4.min.js"></script>
<script type="text/javascript">
    jeDate("#test11A",{
        format: "YYYY-MM-DD hh:mm:ss",
        multiPane:false,
        range:"~"
    });

    $(".pagination a").on("click",function (e) {
        var url = $(this).attr("href");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        $(location).attr('href', url);
    });
    $(".exportdata").on("click",function (e) {
        var url = $(this).attr("data-url");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        location.href=url;
    });
</script>
